package vista;
import java.awt.BorderLayout;
import java.awt.event.ActionListener;

import javax.swing.ButtonGroup;
import javax.swing.ComboBoxModel;
import javax.swing.DefaultComboBoxModel;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JRadioButton;
import javax.swing.JSeparator;
import javax.swing.JTextField;

import javax.swing.WindowConstants;
import javax.swing.SwingUtilities;


/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class VTaller extends javax.swing.JFrame {
	private JPanel panCliente;
	private JLabel lblTituloTaller;
	private JLabel lblNombreTaller;
	private JLabel lblEstadoTaller;
	private JLabel lblRIFTaller;
	private JTextField txtRIFTaller;
	private JButton btnModificarTaller;
	private JTextField txtNombreTaller;
	private JComboBox cmbEstadoTaller;
	private JLabel lblCodTaller;
	private JTextField txtDireccionTaller;
	private JTextField txtTlfTaller;
	private JComboBox cmbTlfTaller;
	private JLabel lblTlfTaller;
	private JLabel lblDireccionTaller;
	private JButton btnSalirTaller;
	private JButton btnCancelarTaller;
	private JButton btnEliminarTaller;
	private JButton btnGuardarTaller;
	private JTextField txtCodTaller;
	private JSeparator sptTituloCliente;

	/**
	* Auto-generated main method to display this JFrame
	*/
	public static void main(String[] args) {
		SwingUtilities.invokeLater(new Runnable() {
			public void run() {
				VTaller inst = new VTaller();
				inst.setLocationRelativeTo(null);
				inst.setVisible(true);
			}
		});
	}
	
	public VTaller() {
		super("Cliente");
		initGUI();
	}
	
	private void initGUI() {
		try {
			setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
			this.setTitle("Taller");
			{
				panCliente = new JPanel();
				getContentPane().add(panCliente, BorderLayout.CENTER);
				panCliente.setLayout(null);
				panCliente.setBackground(new java.awt.Color(17,139,235));
				panCliente.setFont(new java.awt.Font("Bitstream Charter",0,14));
				panCliente.setPreferredSize(new java.awt.Dimension(716, 555));
				{
					lblTituloTaller = new JLabel();
					panCliente.add(lblTituloTaller);
					lblTituloTaller.setText("Informacion Taller");
					lblTituloTaller.setBounds(220, 7, 224, 21);
					lblTituloTaller.setFont(new java.awt.Font("Andika Basic",1,18));
				}
				{
					sptTituloCliente = new JSeparator();
					panCliente.add(sptTituloCliente);
					sptTituloCliente.setBounds(65, 34, 502, 10);
				}
				{
					txtCodTaller = new JTextField();
					panCliente.add(txtCodTaller);
					txtCodTaller.setBounds(277, 92, 157, 22);
				}
				{
					lblEstadoTaller = new JLabel();
					panCliente.add(lblEstadoTaller);
					lblEstadoTaller.setText("Estado del Taller:");
					lblEstadoTaller.setBounds(88, 170, 179, 15);
				}
				{
					lblRIFTaller = new JLabel();
					panCliente.add(lblRIFTaller);
					lblRIFTaller.setText("RIF:");
					lblRIFTaller.setBounds(88, 316, 172, 15);
				}
				{
					txtRIFTaller = new JTextField();
					panCliente.add(txtRIFTaller);
					txtRIFTaller.setBounds(277, 316, 136, 22);
				}
				{
					btnGuardarTaller = new JButton();
					panCliente.add(btnGuardarTaller);
					btnGuardarTaller.setText("Registrar Taller");
					btnGuardarTaller.setBounds(65, 442, 129, 26);
					btnGuardarTaller.setBackground(new java.awt.Color(165,42,42));
				}
				{
					btnModificarTaller = new JButton();
					panCliente.add(btnModificarTaller);
					btnModificarTaller.setText("Modificar");
					btnModificarTaller.setBounds(245, 442, 82, 26);
					btnModificarTaller.setBackground(new java.awt.Color(173,216,230));
				}
				{
					btnEliminarTaller = new JButton();
					panCliente.add(btnEliminarTaller);
					btnEliminarTaller.setText("Eliminar");
					btnEliminarTaller.setBounds(355, 442, 77, 26);
					btnEliminarTaller.setBackground(new java.awt.Color(173,216,230));
				}
				{
					btnCancelarTaller = new JButton();
					panCliente.add(btnCancelarTaller);
					btnCancelarTaller.setText("Cancelar");
					btnCancelarTaller.setBounds(469, 442, 77, 26);
					btnCancelarTaller.setBackground(new java.awt.Color(173,216,230));
				}
				{
					btnSalirTaller = new JButton();
					panCliente.add(btnSalirTaller);
					btnSalirTaller.setText("Salir");
					btnSalirTaller.setBounds(575, 442, 77, 26);
					btnSalirTaller.setBackground(new java.awt.Color(173,216,230));
				}
				{
					txtNombreTaller = new JTextField();
					panCliente.add(txtNombreTaller);
					txtNombreTaller.setBounds(277, 125, 155, 22);
				}
				{
					txtDireccionTaller = new JTextField();
					panCliente.add(txtDireccionTaller);
					txtDireccionTaller.setBounds(277, 212, 283, 79);
				}
				{
					lblNombreTaller = new JLabel();
					panCliente.add(lblNombreTaller);
					lblNombreTaller.setBounds(88, 129, 200, 15);
					lblNombreTaller.setText("Nombre:");
					lblNombreTaller.setFont(new java.awt.Font("Bitstream Charter",0,14));
				}
				{
					lblDireccionTaller = new JLabel();
					panCliente.add(lblDireccionTaller);
					lblDireccionTaller.setText("Dirección:");
					lblDireccionTaller.setBounds(88, 212, 134, 15);
					lblDireccionTaller.setFont(new java.awt.Font("Bitstream Charter",0,14));
				}
				{
					lblTlfTaller = new JLabel();
					panCliente.add(lblTlfTaller);
					lblTlfTaller.setText("Teléfono:");
					lblTlfTaller.setFont(new java.awt.Font("Bitstream Charter",0,14));
					lblTlfTaller.setBounds(88, 368, 172, 15);
				}
				{
					ComboBoxModel cmbTlfAseguradoraModel = 
							new DefaultComboBoxModel(
									new String[] { "0251", "0416" });
					cmbTlfTaller = new JComboBox();
					panCliente.add(cmbTlfTaller);
					cmbTlfTaller.setModel(cmbTlfAseguradoraModel);
					cmbTlfTaller.setBounds(277, 365, 60, 22);
					
				}
				{
					txtTlfTaller = new JTextField();
					panCliente.add(txtTlfTaller);
					txtTlfTaller.setBounds(343, 365, 136, 22);
				}
				{
					lblCodTaller = new JLabel();
					panCliente.add(lblCodTaller);
					lblCodTaller.setText("Codigo:");
					lblCodTaller.setFont(new java.awt.Font("Bitstream Charter",0,14));
					lblCodTaller.setBounds(88, 95, 200, 15);
				}
				{
					ComboBoxModel jComboBox1Model = 
							new DefaultComboBoxModel(
									new String[] { "Activo", "Inactivo" });
					cmbEstadoTaller = new JComboBox();
					panCliente.add(cmbEstadoTaller);
					cmbEstadoTaller.setModel(jComboBox1Model);
					cmbEstadoTaller.setBounds(279, 170, 153, 22);
				}
			}
			pack();
			this.setSize(721, 522);
		} catch (Exception e) {
		    //add your error handling code here
			e.printStackTrace();
		}
	}

	public void addListener(ActionListener accion) {
		this.btnSalirTaller.addActionListener(accion);
		
	}

}
